package com.hz.house.token;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * JWT相关参数配置
 * @author lfw
 *
 */
@Component
@ConfigurationProperties(prefix = "token.jwt")
public class JWTConfig {
	
	private String header;
	
	private String parameterToken;
	
	private String tokenHead = "Authorization";
	
	private int expiration = 60 * 60 * 24*1000;
	
	private String secret;
	
	
	
	

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getParameterToken() {
		return parameterToken;
	}

	public void setParameterToken(String parameterToken) {
		this.parameterToken = parameterToken;
	}

	public String getTokenHead() {
		return tokenHead;
	}

	public void setTokenHead(String tokenHead) {
		this.tokenHead = tokenHead;
	}

	public int getExpiration() {
		return expiration;
	}

	public void setExpiration(int expiration) {
		this.expiration = expiration;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}
}
